<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CustomerOrderDetails.aspx.vb" Inherits="MIMS_WRS.Web.CustomerOrderDetails"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Customer Orders Information</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="bulkorderlist.css" type="text/css" rel="stylesheet" name="Default stylesheet">
		<LINK href="common.css" type="text/css" rel="stylesheet" name="Default stylesheet">
		<script language="JavaScript" src="../js/list.js"></script>
		<style>
			tooltipheader { BORDER-RIGHT: #c4d5e3 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #c4d5e3 1px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 11px; BACKGROUND: #c4d5e3; FILTER: alpha(opacity=85); PADDING-BOTTOM: 5px; BORDER-LEFT: #c4d5e3 1px solid; WIDTH: 400px; PADDING-TOP: 5px; BORDER-BOTTOM: #c4d5e3 1px solid; FONT-FAMILY: tahoma, arial; opacity: 0.85; -moz-opacity: 0.85 }
			.tooltipbody { BORDER-RIGHT: #c4d5e3 1px solid; PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 11px; BACKGROUND: #fff; FILTER: alpha(opacity=85); PADDING-BOTTOM: 8px; BORDER-LEFT: #c4d5e3 1px solid; WIDTH: 400px; PADDING-TOP: 8px; BORDER-BOTTOM: #c4d5e3 1px solid; FONT-FAMILY: tahoma, arial; opacity: 0.85; -moz-opacity: 0.85 }
			.tooltiph1 { FONT-WEIGHT: bold; TEXT-DECORATION: underline }
			DIV#subHeader { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-SIZE: 8pt; PADDING-BOTTOM: 3px; COLOR: white; PADDING-TOP: 3px; FONT-FAMILY: Tahoma, Arial, verdana; HEIGHT: 2%; BACKGROUND-COLOR: #64a2de }
			DIV#header { VERTICAL-ALIGN: top; HEIGHT: 5%; BACKGROUND-COLOR: #eeeeee }
			DIV#header H1 { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 1.4em; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: blue; PADDING-TOP: 0px }
			DIV#header #navigation { CLEAR: left; PADDING-RIGHT: 0.3em; FLOAT: right; VERTICAL-ALIGN: top }
			#tblList TABLE { BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: whitesmoke }
			#tblList TD { BORDER-TOP: black 0px solid; BORDER-LEFT: #ddd 0px solid; CURSOR: hand }
			#tblList TD { PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 11px; WHITE-SPACE: nowrap; TEXT-ALIGN: left }
			TH { PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 11px; WHITE-SPACE: nowrap; TEXT-ALIGN: left }
			#tblList TH { DISPLAY: block; FONT-WEIGHT: normal; FONT-SIZE: 0.8em; OVERFLOW: hidden; BORDER-LEFT: #222 0px solid; COLOR: #3a4f6c; BORDER-BOTTOM: #222 0px solid; FONT-FAMILY: verdana, Arial, tahoma, sans-serif; TEXT-OVERFLOW: ellipsis; BACKGROUND-COLOR: #cfd9e7; TEXT-ALIGN: center }
			#tblList TABLE TBODY TR TD DIV { DISPLAY: block; OVERFLOW: hidden; TEXT-OVERFLOW: ellipsis }
			.ItemRow { BACKGROUND: #f0f0f0 }
			.AlternateItemRow { BACKGROUND: #fafafa }
			.RowSelected { COLOR: #fff; BACKGROUND-COLOR: #9b9b1c }
			.CellWidth1 { WIDTH: 5% }
			.CellWidth11 { WIDTH: 6% }
			.CellWidth2 { WIDTH: 10% }
			.CellWidth3 { WIDTH: 18% }
			.CellWidth4 { WIDTH: 8% }
			.CellWidth5 { WIDTH: 9% }
			.CellWidth6 { WIDTH: 8% }
			.CellWidth7 { WIDTH: 9% }
			.CellWidth8 { WIDTH: 8% }
			.CellWidth9 { WIDTH: 8% }
			.CellWidth10 { WIDTH: 8% }
			.ReadOnlyTextbox { COLOR: #0000cc }
			.TextBoxNumber { TEXT-ALIGN: right }
		</style>
		<script language="javascript">
		<!--
		function printDocument() {
			window.document.getElementById('title').style.display = "none";
			window.document.getElementById('ActionBottom').style.display = "none";
			window.print();
			window.document.getElementById('title').style.display = "block";
			window.document.getElementById('ActionBottom').style.display = "block";
		}
		//-->
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="form1" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"
			runat="server">
			<div id="actionTop">
				<div id="title">
					<h5>
						Order details
					</h5>
				</div>
				<div id="sort">
					<span>Company Name:</span><font style="FONT-WEIGHT: bold"><asp:Label id="lblCompanyName" Runat="server"></asp:Label></font>
				</div>
				<div id="divOuter" style="FLOAT:left">
					<asp:datalist id="dlShoppingList" runat="server" gridlines="Both" cellpadding="1" width="100%"
						enableviewstate="true">
						<headertemplate>
							<table id="tblList" width="100%">
								<thead>
									<tr height="30px">
										<th class="CellWidth1" nowrap style="word-wrap: break-word;">
											Item</th>
										<th class="CellWidth2" nowrap style="word-wrap: break-word;">
											Product Code</th>
										<th nowrap style="word-wrap: break-word;">
											Description</th>
										<th class="CellWidth4" nowrap style="word-wrap: break-word;">
											Order Qty</th>
										<th class="CellWidth5" nowrap style="word-wrap: break-word;">
											Units</th>
										<th class="CellWidth6" nowrap style="word-wrap: break-word;">
											Unit Price</th>
										<th class="CellWidth7" nowrap style="word-wrap: break-word;width:140px; CURSOR: default">
											Total
											<%# GetFOBorHDHeader() %>
											Price &nbsp;</th>
										<th class="CellWidth8" nowrap style="word-wrap: break-word;">
											Priority</th>
										<th class="CellWidth9" nowrap style="word-wrap: break-word;">
											Note&nbsp;</th>
										<th class="CellWidth10" nowrap style="word-wrap: break-word;">
											Weight</th>
										<th class="CellWidth10" nowrap style="word-wrap: break-word;">
											Volume</th>
									</tr>
								</thead>
								<tbody>
						</headertemplate>
						<Itemtemplate>
							<tr class="<%# GetRowClass(Container) %>">
								<td class="CellWidth11" style="text-align: right">
									<asp:Label Runat="server" ID="ltrItemIndex"></asp:Label>
								</td>
								<td class="CellWidth2"><%# DataBinder.Eval(Container.DataItem, "ProductCode")%></td>
								<td nowrap style="word-wrap: break-word;width:200px; CURSOR: default"><%# DataBinder.Eval(Container.DataItem, "Description")%></td>
								<td class="CellWidth4" style="text-align: center">
									<%# DataBinder.Eval(Container.DataItem, "Qty")%>
								</td>
								<td class="CellWidth5"><%# DataBinder.Eval(Container.DataItem, "UnitSetting")%>
								</td>
								<td class="CellWidth6" style="text-align: right">
									<%# GetDecimalText(DataBinder.Eval(Container.DataItem, "UnitPrice")) %>
								</td>
								<td class="CellWidth7" style="text-align: right">
									<%# GetDecimalText(DataBinder.Eval(Container.DataItem, "TotalPrice"))%>
								</td>
								<td class="CellWidth8" style="text-align: left">
									<%# GetPriority(DataBinder.Eval(Container.DataItem, "PriorityIndex")) %>
								<td class="CellWidth9" style="text-align: left"><%# DataBinder.Eval(Container.DataItem, "Notes")%></td>
								<td class="CellWidth10" style="text-align: right"><%# GetDecimalText(DataBinder.Eval(Container.DataItem, "UnitWeight"))%>
								</td>
								<td class="CellWidth10" style="text-align: right" align="right"><%# DataBinder.Eval(Container.DataItem, "MinQtyVolume")%>
								</td>
							</tr>
						</Itemtemplate>
						<footertemplate>
							</tbody></table>
						</footertemplate>
					</asp:datalist>
				</div>
				<div id="ActionBottom" style="PADDING-TOP: 10px;TEXT-ALIGN: right">
					<asp:Button ID="btnPrint" Runat="server" Text="Print" width="75px" OnClick="btnPrint_OnClick" />
					&nbsp; &nbsp;<input type="button" value="Close" style="WIDTH:75px" onclick="window.close();">
				</div>
			</div>
		</form>
	</body>
</HTML>
